package com.example.wan1.view.search;

import com.example.wan1.base.mvp.IBaseView;
import com.example.wan1.model.ArticleBean;
import com.example.wan1.model.SearchHotBean;
import com.example.wan1.model.common.CommonResList;

import java.util.List;

/***
 * @Author: zxd
 * @CreateDate: 2020/7/28 14:03
 * @Description: 搜索
 */
public interface SearchContract {

    interface View extends IBaseView {
        void onSuccess(CommonResList<ArticleBean> data);

        void onFailure(String msg);

        void onGetHotData(List<SearchHotBean> data);
    }

    interface Presenter {
        void search(int page, String k);

        void searchByKnowledge(int page, String author);

        void searchByWechat(int wxId, int page, String k);

        void searchHotData();
    }
}
